package com.guodu.util;

import java.io.File;
import java.io.IOException;
import javax.servlet.http.HttpServlet;
import javax.servlet.ServletException;



public class FilterServlet extends HttpServlet {

	private static final long serialVersionUID = -4992689593850982119L;

	public void init() throws ServletException {
		System.out.println(this.getServletContext().getRealPath("/"));
		String filePath = this.getServletContext().getRealPath(
				"/WEB-INF/classes/" + Constant.ADMIN_ONLINE_FILE_PROPERTIES);
		
		File file = new File(filePath);

		if (file.exists()) {

			file.delete();
		}
		try {
			file.createNewFile();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
